﻿@model OpenMVCRM.ViewModels.ClientViewModel

@{
    ViewBag.Title = Model.Name;
}
<fieldset>
<div class="divContainer">
<div class="divEditBar">
<div class="divBreadCrump">
      <span>You are here : </span>
      @Html.ActionLink("Clients","Index") 
      <span class="breadCrumpSeperator"></span>
      @Model.Name
</div>
<div class="divEditRightLinks">
    @Html.ActionLink("Edit","Edit",new {@id=Model.ID}) |
    @Html.ActionLink("Delete", "Delete", new { @id = Model.ID })
</div>
</div>
    @if (!String.IsNullOrEmpty(Model.Message))
    {
        <div class="actionSuccess">
            <p>@Model.Message</p>
        </div>
    }
<div class="divClientInfo">

<h2>@Model.Name</h2>
<p><a href="@Model.WebSite">@Model.WebSite</a></p>
<p>
    @Model.PrimaryPhone.Number
</p>
<p>
    @Model.Description
</p>

</div>
<div class="divAddressInfo">
 <h3>Address Information</h3>
 <div class="divRightLinks">
   @Html.ActionLink("Add New","AddAddress",new {@id=Model.ID}) 
   |
   @Html.ActionLink("Edit", "Edit", new { @id = Model.ID })
 </div>
 
</div>
<div class="divAddressInfo">
 <h3>Contacts </h3>
</div>
</div>
</fieldset>
<script type="text/javascript">
    $(function () {

        $(".divAddressTile").mouseenter(function () {
            $(this).find(".divEditBtns").show();
        });
        $(".divAddressTile").mouseleave(function () {
            $(this).find(".divEditBtns").hide();
        });

    });

</script>